package com.ustze.ocr.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author zongun
 * @TableName biz_day_dispatch_statistic
 * @date 2024/01/25
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DispatchDetailVo {


    /**
     * 煤矿名称
     */
    private String coalmineName;

    /**
     * 证载能力
     */
    private String certCarryCapacity;


    /**
     * 掘进循环次数
     */
    private BigDecimal tunnellingTime;


    /**
     * 回采循环次数
     */
    private BigDecimal stopeTime;


    /**
     * 掘进工作面信息
     */
    private List<DispatchPushVo> tunnellingDispatch;

    /**
     * 回采工作面信息
     */
    private List<DispatchPushVo> stopeDispatch;


    /**
     * 备注
     */
    private String remark;

    /**
     * 结论/正循环作业标准
     */
    private String conclusion;

    /**
     * 填表人
     */
    private String filledBy;

    /**
     * 审核人
     */
    private String reviewedBy;

    /**
     * 安全矿长
     */
    private String safetyMineManager;


    public static DispatchDetailVo buildVo(DayDispatchStatistic dayDispatchStatistic) {
        return DispatchDetailVo.builder()
            .coalmineName(dayDispatchStatistic.getCoalmineName())
            .certCarryCapacity(dayDispatchStatistic.getCertCarryCapacity())
            .tunnellingTime(dayDispatchStatistic.getTunnellingTime())
            .stopeTime(dayDispatchStatistic.getStopeTime())
            .remark(dayDispatchStatistic.getRemark())
            .conclusion(dayDispatchStatistic.getConclusion())
            .filledBy(dayDispatchStatistic.getFilledBy())
            .reviewedBy(dayDispatchStatistic.getReviewedBy())
            .safetyMineManager(dayDispatchStatistic.getSafetyMineManager())
            .build();
    }


}
